define (require, exports, module) ->
  # 基础服务
  base_api = require 'mods/api/base_api'
  # 定义组件
  module.exports =

    # 登录提交
    doLogin: (params) ->
      url = "/login"
      return base_api.postRequestByParams url, params

    # 获取登录用户信息
    getUserSession: () ->
      url = "/user/session"
      return base_api.getRequest url

    # 获取用户风险等级信息
    getUserRiskInfo: (params) ->
      url = '/rest/qry/QueryRiskAssessment'
      return base_api.postRequestByParams url, params

    # 查询客户信息
    queryClientInfo: (params) ->
      url = "/rest/qry/QueryClient"
      return base_api.postRequestByParams url, params